<!doctype html><style>
img {
    border: 1px solid black;
    width: 30px;
    height: 30px;
}
/* This element will not be visible in the viewport */
#notInViewport {
    position: relative;
    top: -1000px;
}
</style><body><img id="notInViewport" loading="lazy" src=""><img id="inViewport" loading="lazy" src="">
<script>
    const inViewport = document.getElementById("inViewport");
    inViewport.addEventListener("load", function() {
        document.body.innerHTML = "PASS";
        internals.signalTextTestIsDone(document.body.innerText);
    });
</script>
